<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>layui</title>
    <meta name="renderer" content="webkit" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    <link rel="stylesheet" href="/layui/css/layui.css"  media="all" />
</head>
<body>
<form class="layui-form" action="">
<div class="layui-form" style="width: 1080px; margin: 0 auto; margin-top: 20px;">
    <blockquote class="layui-elem-quote layui-text" style="margin-bottom: 20px;">
        <h1>资料信息</h1>
        <a th:href="@{/}">返回首页</a>
    </blockquote>

    <table class="layui-table">
        <colgroup>
            <col width="150">
            <col width="150">
            <col width="150">
            <col width="150">
            <col width="150">
            <col width="150">
            <col width="80">
        </colgroup>
        <thead>
        <tr>
            <th>小组名称</th>
            <th>资料名称</th>
            <th>IP</th>
            <th>上传人</th>
            <th>创建时间</th>
            <th>更新时间</th>
            <th>浏览数</th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <th th:text="${userData.userClass}">小组名称</th>
            <th th:text="${userData.dataName}">资料名称</th>
            <th th:text="${userData.userIp}">IP</th>
            <th th:text="${userData.uploadPerson}">上传人</th>
            <th th:text="${#dates.format(userData.gmtCreate, 'yyyy-MM-dd HH:mm:ss')}">创建时间</th>
            <th th:text="${#dates.format(userData.gmtModify, 'yyyy-MM-dd HH:mm:ss')}">更新时间</th>
            <th th:text="${userData.dataCount}">浏览数</th>
        </tr>
        </tbody>
    </table>
    <blockquote class="layui-elem-quote layui-text" style="margin-bottom: 20px;">
        <h1>资料简介</h1>
    </blockquote>
    <div class="layui-form-item">
        <div class="layui-inline">
            <div class="layui-input-inline" style="width:1080px; height:auto; min-height:200px;border: #ddeeff solid 1px;" th:text="${userData.dataInfo}">
            </div>
        </div>

        <div class="layui-input-block">
            <div class="layui-inline">
                <a class="layui-btn" th:if="${view}" th:href="${'/userData/delete?id='+userData.id}"> 删除 </a>
                <a class="layui-btn" href="userData/toAdd" th:if="${view}"> 修改资料 </a>
                <a class="layui-btn" th:href="${dataUrl}"> 附件下载 </a>
            </div>
        </div>
    </div>

</div>


</form>
<script src="/layui/layui.js" charset="utf-8"></script>

<script>
    layui.use('table', function(){
        var table = layui.table;

    });
</script>

</body>
</html>